import type { App } from 'vue';
// 面包屑组件
import BreadCrumb from './breadCrumb/index';
// 注册分页表格组件
import PaginationTable from './paginationTable';
// svg-icon
import SvgIcon from './icon';
// 部门人员选择
import TreeSelect from './treeSelect';
// tree-nav
import TreeNav from './treeNav';
// 图片上传
import ImageUpload from './imageUpload/index';
// 富文本
import RichText from './richText';
// 页面容器
import PageContainer from './pageContainer';

import NoticeBar from './noticeBar';

const components = [
  BreadCrumb,
  PaginationTable,
  SvgIcon,
  TreeNav,
  TreeSelect,
  ImageUpload,
  RichText,
  PageContainer,
  NoticeBar
];

const install = (app: App) => {
  components.forEach((cmpInstall) => {
    cmpInstall.call(null, app);
  });
};

export default install;
